#define  _CRT_SECURE_NO_WARNINGS 1
#include"game.h"
	void Intiboard(char mine[Rows][Cols], int r, int c, char set)
	 {
		int i = 0;
		int j = 0;
		for (i = 0;i < r;i++)
		{
			for(j = 0;j < c;j++)
			{
				mine[i][j] = set;
			}
		}

	}
	void print_Intiboard(char mine[Rows][Cols], int r, int c)
	{
		int i = 0;
		int j = 0;
		for (i = 0;i <= r;i++)
		{
			printf("%d ", i);
		}
		printf("\n");
		for (i = 1;i <= r;i++)
		{
			printf("%d ", i);
			for (j = 1;j <= c;j++)
			{
				
				printf("%c ",mine[i][j]);
			}
			printf("\n");
		}

	}
 
	void setboard(char mine[Rows][Cols], int r, int c)
	{
		int count = easy_set;
		int x = rand() % r + 1;
		int y = rand() % c + 1;
		int i, j;
		for (i = 0;i < r;i++)
		{
			for (j = 0;j < c;j++)
			{
				while(count)
				{ 
					if (mine[x][y] == '0')
					{
						mine[x][y] = '1';
						count--;
					}
					
				}
			}
		}

	}
